<template>
    <el-card>
        <template #header>
            <div class="search-header">
                <span>线上热门搜索</span>
                <el-dropdown>
                    <i class="el-icon-more el-icon-arrow-down"></i>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item>黄金糕</el-dropdown-item>
                        <el-dropdown-item>狮子头</el-dropdown-item>
                        <el-dropdown-item>螺蛳粉</el-dropdown-item>
                        <el-dropdown-item>双皮奶</el-dropdown-item>
                        <el-dropdown-item>蚵仔煎</el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </div>
        </template>
        <div>
            <el-row :gutter="10">
                <el-col :span="12"><LineCharts></LineCharts> </el-col>
                <el-col :span="12"> <LineCharts></LineCharts></el-col>
            </el-row>
            <el-table
                :data="tableDta"
                border
                style="width: 100%; margin: 10px 0"
            >
                <el-table-column type="index" label="排名" width="80px">
                </el-table-column>
                <el-table-column  label="搜索关键字">
                </el-table-column>
                <el-table-column
                    label="用户数"
                    sortable
                >
                </el-table-column>
                <el-table-column
                    label="周涨幅"
                    sortable
                >
                </el-table-column>
            </el-table>
            <el-pagination
                layout="prev, pager, next"
                :total="50"
                style="text-align: right"
            >
            </el-pagination>
        </div>
    </el-card>
</template>

<script>
import LineCharts from "./LineCharts"
export default {
    name: "Search",
    components: {
        LineCharts,
    },
    data() {
        return {
            tableDta: [{}],
        }
    },
}
</script>

<style>
.search-header {
    display: flex;
    justify-content: space-between;
}
</style>